searchbar: Stop adding a style class
authorMatthias Clasen <mclasen@redhat.com>
Thu, 5 Nov 2015 12:44:04 +0000 (07:44 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 5 Nov 2015 12:44:04 +0000 (07:44 -0500)
We have an element name now.

gtk/gtksearchbar.c

index 8833fee399dadeb02d99ba5a5532de4130e86f3a..5bb0b92c7356f1999c1fe74d8b8e5ea7f7be4c18 100644 (file)
@@ -433,7 +433,6 @@ static void
 gtk_search_bar_init (GtkSearchBar *bar)
 {
   GtkSearchBarPrivate *priv = gtk_search_bar_get_instance_private (bar);
-  GtkStyleContext *context;
 
   gtk_widget_init_template (GTK_WIDGET (bar));
 
@@ -450,11 +449,6 @@ gtk_search_bar_init (GtkSearchBar *bar)
   gtk_widget_set_no_show_all (priv->close_button, TRUE);
   g_signal_connect (priv->close_button, "clicked",
                     G_CALLBACK (close_button_clicked_cb), bar);
-
-  context = gtk_widget_get_style_context (GTK_WIDGET (bar));
-  gtk_style_context_add_class (context, "search-bar");
-  gtk_style_context_add_class (context, GTK_STYLE_CLASS_HORIZONTAL);
-
 };
 
 /**